-- GENERATED SPELL FOR [Coilskar Muckwatcher] --


function spell0_19788(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(38232,pUnit)
pUnit:RegisterEvent('Sorts_19788', 20324, 1)
end

function spell1_19788(pUnit, Event) --@Stab,n/a--
pUnit:FullCastSpellOnTarget(38029,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19788', 667, 1)
end

function Sorts_19788(pUnit, Event)
local choix_sorts_19788 = math.random(0, 1)
if choix_sorts_19788 == 0 then
pUnit:RegisterEvent('spell0_19788', 1, 1)
end
if choix_sorts_19788 == 1 then
pUnit:RegisterEvent('spell1_19788', 1, 1)
end
end

function mob19788_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19788', math.random(1500, 3000), 1)
end

function mob19788_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19788_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19788_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19788, 1, 'mob19788_Action')
RegisterUnitEvent(19788, 2, 'mob19788_Leave')
RegisterUnitEvent(19788, 3, 'mob19788_Kill')
RegisterUnitEvent(19788, 4, 'mob19788_Die')
